<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
	<title>娱管家</title>  
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="x5-orientation" content="portrait">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Access-Control-Allow-Origin" content="">
	<meta http-equiv="content-security-policy">
	<script type="text/javascript" src="js/jquery.min.js" ></script>
	<!--mui样式-->
	<link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
	<link rel="stylesheet" type="text/css" href="css/mui/app.css"/>
	<link rel="stylesheet" type="text/css" href="css/mui/mui.picker.css"/>
	<link rel="stylesheet" type="text/css" href="css/mui/mui.picker.min.css"/>
	<link rel="stylesheet" type="text/css" href="css/mui/mui.poppicker.css"/>
	<link rel="stylesheet" href="css/mui/mui.imageviewer.css">
	<!--环信-->
	<script type="text/javascript" src="js/hx/strophe.js" ></script>
	<script type="text/javascript" src="js/hx/websdk-1.1.2.js"></script>
	<script type="text/javascript" src="js/hx/websdk.config.js"></script>
	<script type="text/javascript" src="js/hx/websdk.shim.js"></script> 
	<script type="text/javascript" src="js/bq.js"></script> 
	<!--环信-->
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=yWnFso0oyjmX79HzCx1DRz2sBtvweQfI"></script>
	<link rel="stylesheet" href="css/loding/fakeLoader.css"/>
	<!--头像上传-->
	<link rel="stylesheet" href="css/cropper.css"/>
	<script src="js/cropper.js"></script>
	<!-- 公共样式与字体  -->
	<link rel="stylesheet" href="css/public.css"/>
	<link rel="stylesheet" type="text/css" href="icon-font/iconfont.css"/>
	<!-- 定制样式   -->
	<link rel="stylesheet" href="css/style.css"/>
	<link rel="stylesheet" href="css/bq.css" />
	<link rel="stylesheet" type="text/css" href="css/NewStyle.css"/>
	<!-- Swiper 样式  -->
	<link rel="stylesheet" type="text/css" href="css/swiper.min.css"/>
	<link rel="stylesheet" href="css/appstyle.css" />

	<!-- 微信分享 -->
	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
	<style type="text/css">
		.rgba{display: none;}
		.tpl_shop_youhuijuan{padding-top:0.3rem;}
		.tpl_shop_youhuijuanitems{width:100%;height:2.1rem;margin:0.2rem auto;display:flex;}
		.tpl_shop_youhuijuanitems_box{width:5rem;height:2.1rem;margin:0 auto;background-size:100% 100% ;background-position:top center;background-repeat: no-repeat;}
		.tpl_shop_youhuijuanitems_box1{color:#fff;display:flex;justify-content: center;align-items:flex-end;margin-top:0.2rem;}
		.tpl_shop_youhuijuanitems_box1_ym{font-size:0.8rem;font-weight: bold;line-height: 0.8rem;}
		.tpl_shop_youhuijuanitems_ling{width:2.08rem;height:0.36rem;margin:0 auto;background:#fff;font-size:0.22rem;line-height:0.4rem;text-align:center;border-radius:0.05rem;font-weight:bold;color:#f94653}
		.tpl_shop_youhuijuanitems_time{font-size:0.16rem;color:#fff;text-align:center;margin-top:0.05rem}
		.tpl_shop_youhuijuanitems_infname{font-size:0.16rem;color:#fff;text-align:center;margin-top:0.02rem}
		.tpl_shop_haibao{width:5.79rem;height:8.65rem;margin:0 auto;position:relative;background-size:100% 100%;background-position: top center;background-repeat: no-repeat;}
		.tpl_shop_haibao_text{width:3.71rem;height:1.28rem;position:absolute;left:50%;margin-left:-1.85rem;bottom:0.76rem;padding:0.1rem 0.2rem;box-sizing:border-box;text-align: center;}
		.jishi_box{width:5.79rem;margin:0 auto 0;position: relative;display:flex;flex-wrap:wrap;align-content:flex-start;padding-top:0.3rem;}
		.jishi_items{width:1.7rem;height:2.56rem;margin-right:0.34rem;margin-bottom:0.17rem}
		.jishi_box .jishi_items:nth-child(3n){margin-right:0}
		.jishi_items_img{width:1.7rem;height:1.7rem;border-radius:50%;background-size:100% 100% ;background-position: top center;background-repeat: no-repeat;}
		.jishi_items_title1{font-size:0.2rem;color:#ff62f2;text-align: center;}
		.jishi_items_title2{text-align: center;}
		.jishi_items_title3{text-align: center;font-size:0.18rem;}
	</style>
</head>
<body>
	<div class="App">
		<span>娱管家</span>
		<button>下载APP</button>
	</div>
	<div class="pHead mui-navbar-inner mui-bar mui-bar-nav header_1">
		<h2>店铺详情</h2>
		<!--<b class="iconfont icon-weixin shop_weixin"></b>-->
	</div>
	<div class="pBody Shop mui-page-content" style="background-color: #f4f4f4;">
		<!-- <video src="http://www.yuzhuli.com/Public/upload_new/videos/191112_115247_8739.mp4" preload="metadat"
			controls></video> -->
		<div id="ShopSwiperBanner">
			
		</div>
	    <ul class="list">
	    	<li class="clearfix list-header">
    			<img src="http://www.yuzhuli.com/Public/upload/image/170429_015749_8761.jpg" class="tu">
    			<p class="left">
    				<span class="name" id="share_name">华成休闲茶室</span>
	    			<span class="score clearfix" id="shop_score">
		    			<span class="iconfont icon-wujiaoxing" style="color: rgb(238, 238, 238);"></span>
		    			<span class="iconfont icon-wujiaoxing" style="color: rgb(238, 238, 238);"></span>
		    			<span class="iconfont icon-wujiaoxing" style="color: rgb(238, 238, 238);"></span>
		    			<span class="iconfont icon-wujiaoxing" style="color: rgb(238, 238, 238);"></span>
		    			<span class="iconfont icon-wujiaoxing" style="color: rgb(238, 238, 238);"></span>
	    			</span>
    			</p>
    			<p class="fl-left phone">
    				<a href="tel:15000127026" class="iconfont icon-dianhua" id="share_tel"></a>
    				<span>电话咨询</span>
    			</p>
    			<p class="ShopAddress" lng="121.275104" lat="31.396709">
    				<span class="iconfont icon-dibiao"></span>
    				<span id="share_address">上海市上海市闵行区梅陇镇虹梅南路2555弄3号102室</span>
    			</p>
	    	</li>
	    	<li class="main clearfix">
	    		<p class="PurchaseNotice">
    				<span class="iconfont icon-laba"></span>
    				<span>须知<span style="color:#f00;font-size:0.20rem;margin: 0.02rem 0 0 0.15rem;">请电话确认预约！</span></span>
    			</p>
	    	</li>
			<li class="content content2 style_content"><pre id="content_pre">全天服务 ；茶楼棋牌<br>40-60元/场 <br>要想详情了解更多优惠信息，请致电咨询。<br></pre></li>
			<!-- youhuijuan  start -->
			<li>
				<ul class="tpl_shop_youhuijuan">
					<li class="tpl_shop_youhuijuanitems" >
								<div class="tpl_shop_youhuijuanitems_box" style="background-image:url();">
									<div class="tpl_shop_youhuijuanitems_box1">
										<div>￥</div>
										<div class="tpl_shop_youhuijuanitems_box1_ym">99</div>
										<div style="margin-left:0.2rem">
											<div style="font-size:0.4rem;">优惠卷</div>
											<div style="font-size:0.23rem">订单满<span>500</span>可用</div>
										</div>
									</div>
									<div  class="tpl_shop_youhuijuanitems_ling" >
										立即领取 <span style="font-weight:bold;">></span>
									</div>
									<div class="tpl_shop_youhuijuanitems_time">2019.08.16-2016.08.16</div>
									<div class="tpl_shop_youhuijuanitems_infname" >某某棋牌社活动</div>
								</div>
							</li>
				</ul>
			</li>
			<!-- youhuijuan  end -->
			<!--促销海报 六期升级 start-->
			<li>
				<div class="tpl_shop_haibao">
					<div class="tpl_shop_haibao_text">

					</div>
				</div>
			</li>
			<!--促销海报 六期升级 end-->
			<!--技师优秀的展示 六期展示 start-->
			<li>
				<div class="jishi_box">
					<!-- <div class="jishi_items">
								<div class="jishi_items_img" >
								</div>
								<div class="jishi_items_title1"  >
									
								</div>
								<div class="jishi_items_title2" >
									
								</div>
								<div class="jishi_items_title3" >
									
								</div>
							 </div>	 -->
				</div>
			</li>
			<!--技师优秀的展示 六期展示 end-->


	    	<li class="main clearfix" id="pl">
	    		<p class="PurchaseNotice">
    				<span class="iconfont icon-pingjia"></span>
    				<span>评价</span>
    			</p>
	    	</li>
	    </ul>
	    <!--<button class="btn">我要预约</button>-->
	    <div class="Eject">
	    	<div class="rgba" style="display: none;"></div>
	    	<ul class="Make-An-Appointment Eject-block">
	    		<li id="E_name">华成休闲茶室</li>
	    		<li><span>*</span><span>情按实际情况填写以下信息，方便我们为您准确无误的安排。</span></li>
	    		<li><input type="number" placeholder="请输入预约人数" id="lj-num"></li>
	    		<li class="double">
	    			<div id="demo1" data-options="{&quot;value&quot;:&quot;2015-10-10 10:10&quot;,&quot;beginYear&quot;:2017,&quot;endYear&quot;:2030}" class="btn mui-btn mui-btn-block">请选择开始时间</div>
	    			<div id="demo3" data-options="{&quot;value&quot;:&quot;2015-10-10 10:10&quot;,&quot;beginYear&quot;:2017,&quot;endYear&quot;:2030}" class="btn mui-btn mui-btn-block">请选择结束时间</div>
	    		</li>
	    		<li><input type="text" placeholder="请填写您的手机号" id="lj-phone"></li>
	    	</ul>
	    	<button class="btn" id="lj-yy">立即预约</button>
	    </div>
	</div>
	<div class="rgba"></div>
	<div class="" id="tan2"></div>
	<script src="js/muijs/mui.min.js"></script>
	<script src="js/muijs/mui.picker.min.js"></script>
	<script src="js/muijs/mui.poppicker.js"></script>
	<script src="js/base.js"></script>
	<script src="js/swiper.min.js"></script>
	<script type="text/javascript">
	    var share_link = location.href;
		var share_data = {
	        title: '娱管家 ',// 设置分享标题
	        desc: '华成休闲茶室,上海市上海市闵行区梅陇镇虹梅南路2555弄3号102室',// 设置分享描述
	        link: share_link,// 设置分享链接
	        img: 'http://www.yuzhuli.com/Public/upload/image/170429_015749_8761.jpg'// 分享图片
	    };
		function tan(text2){
			$("#tan2").addClass("tan");
			$("#tan2").text(text2);
			clearTimeout(a);
			var a = setTimeout (function(){
				ding();
			},2000);
			function ding (){
				$("#tan2").removeClass("tan");
				$("#tan2").text("");
			};
		}
		
		function getCache(key){
			if(localStorage.getItem(key)){
				return JSON.parse(localStorage.getItem(key));
			}else{
				return false;
			}
		}
		var token = GetQueryString('token');
		$('.App button').unbind('click').on('click',function(){
			location.href = 'http://www.yuzhuli.com/Share/erweima.html?id='+token;
		});
		
		
		function initLBT(boxId,dataList,datavideo,video_cover){
			$('#'+boxId).empty();
			$('#'+boxId).html('<div class="swiper-container swiper_'+boxId+'"><div class="swiper-wrapper SwiperImg_'+boxId+'" style="font-size: 0;"></div><div class="swiper-pagination SwiperSpot_'+boxId+'"></div></div>');
			var html = '';
			if(datavideo){
			    html += '<div class="swiper-slide" style="text-align:center"><video src="'+datavideo+'"	poster="'+video_cover+'"  preload="auto"   webkit-playsinline="true" playsinline="true" controls="controls" style="height:4rem;max-width:100%"	preload="metadata"></video></div>';
			}
			$.each(dataList,function(i,d){
				html += '<div class="swiper-slide"><img src="' + d + '"></div>';
			});
			$('.SwiperImg_'+boxId).html(html);
			LBT('.swiper_'+boxId,'.SwiperSpot_'+boxId);
		}
	    function LBT(swiper1,swiper2) {
			//轮播图
			var swiper = new Swiper(swiper1, {
				pagination: swiper2,
				paginationClickable: true,
				loop:true
			});
			swiper.update();
		}
	    
	    function GetQueryString(name){
		     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
		     var r = window.location.search.substr(1).match(reg);
		     if(r!=null)return  unescape(r[2]); return null;
		}
	    
//		$(".btn").unbind('tap').on('tap',function(){
//			$(".Eject,.rgba").show();
//		});
		
		$('#demo1').unbind('tap').on('click',function(){
			var optionsJson = this.getAttribute('data-options') || '{}';
			var options = JSON.parse(optionsJson);
			var id = this.getAttribute('id');
			var picker = new mui.DtPicker(options);
			var this_ = this;
			var len = $('.mui-dtpicker').length;
			picker.show(function(rs) {
				this_.innerText = rs.text;
				picker.dispose();
			});
			if(len>=1){
				var len2 = len-1;
				for(var i = 0 ; i < len2;i++){
					$('.mui-dtpicker').eq(i).remove();
					$('.mui-backdrop').eq(i).remove();
				}
				return false;
			}
		});
		$('#demo3').unbind('tap').on('click',function(){
			var optionsJson = this.getAttribute('data-options') || '{}';
			var options = JSON.parse(optionsJson);
			var id = this.getAttribute('id');
			var picker = new mui.DtPicker(options);
			var this_ = this;
			var len = $('.mui-dtpicker').length;
			picker.show(function(rs) {
				this_.innerText = rs.text;
				picker.dispose();
			});
			if(len>=1){
				var len2 = len-1;
				for(var i = 0 ; i < len2;i++){
					$('.mui-dtpicker').eq(i).remove();
					$('.mui-backdrop').eq(i).remove();
				}
				return false;
			}
		});
		
		$(".rgba").unbind('tap').on('tap',function() {
			$(".Eject,.rgba").hide();
		});
		
		$("header").css("z-index","55");
		
		var token2 = getCache('token');
		var parm = GetQueryString('id')||15594;
		
		var url2 = 'http://www.yuzhuli.com/api.php/Api/shop_info';
		
	    $.post(url2,{id:parm,token:token2},function(obj){
	    	if(obj.s){
				$(".icon-wujiaoxing").css("color","#eee");
	    		var p = obj.d;
	    		var lun = p.pinglun_info;
	    		$("#pl").find('.block2').remove();
    			if(p.id == parm){
    				$(".left .name,#E_name").text(p.shopname);
    				if(p.tel==null){
    					$(".phone a").attr("href","tel:"+p.phone);
    				}else{
    					$(".phone a").attr("href","tel:"+p.tel);
    				}
    				$("#content_pre").html(p.ds);
    				$(".ShopAddress").attr('lng',p.lng).attr('lat',p.lat);
    				$(".list-header img").attr("src",p.listimg);
    				$(".list-header .ShopAddress span:nth-last-child(1)").text(p.pro + p.city + p.area + p.addr);
    				$("#shop_score span").slice(0,p.xing).css("color","#ff9d09");
    				initLBT('ShopSwiperBanner',p.showimg,p.video,p.video_cover);
		    		$.each(lun, function(ii,dd) {
		    			var name = dd.nickname != null?dd.nickname:'用户';
		    			var tpl = '<div class="block2 clearfix"><div class="left"><p class="">'+name+'</p>';
		    			tpl += '<p class="score clearfix"><span class="iconfont icon-wujiaoxing"></span><span class="iconfont icon-wujiaoxing"></span><span class="iconfont icon-wujiaoxing"></span><span class="iconfont icon-wujiaoxing"></span><span class="iconfont icon-wujiaoxing"></span></p>';
			    		tpl += '<p>'+dd.content+'</p>';
		    			tpl += '</div>';
		    			tpl += '<p class="fl-left"><span style="letter-spacing: 0.02rem;">'+dd.ctime+'</span></p>';
		    			if(dd.ping_img && dd.ping_img.length>0){
			    			tpl += '<p class="fl-left img" style="">';
			    			$.each(dd.ping_img,function(iii,ddd){
			    				if(ddd == ""){
			    					
			    				}else{
				    				tpl += '<i style="background-image:url('+ddd+')"></i>';
			    				}
			    			});
			    			tpl += '</p>';
		    			}
		    			tpl += '</div>';
		    			$("#pl").append(tpl);
		    			$(".block2").eq(ii).find(".icon-wujiaoxing").slice(0,dd.xing).css("color","#ff9d09");
		    		});
	    			$(".ShopAddress").unbind('tap').on('tap',function(){});

					// 生成优惠卷
					if(obj.coupons){
						var youhuihtml="";
						$.each(obj.coupons,function(i,d){
						youhuihtml=youhuihtml+'<li class="tpl_shop_youhuijuanitems"><div class="tpl_shop_youhuijuanitems_box" style="background-image:url('+d.img+');">';
						youhuihtml=youhuihtml+'<div class="tpl_shop_youhuijuanitems_box1"><div>￥</div><div class="tpl_shop_youhuijuanitems_box1_ym">'+d.discount_amount+'</div><div style="margin-left:0.2rem">';
						youhuihtml=youhuihtml+'<div style="font-size:0.4rem;">优惠卷</div><div style="font-size:0.23rem">订单满<span>'+d.condition_amount+'</span>可用</div></div></div><div class="tpl_shop_youhuijuanitems_ling" data-id="'+d.id+'">';
						youhuihtml=youhuihtml+'立即领取 <span style="font-weight:bold;">></span></div><div class="tpl_shop_youhuijuanitems_time">'+d.get_start_time+'-'+d.get_end_time+'</div>';
						youhuihtml=youhuihtml+'<div class="tpl_shop_youhuijuanitems_infname">'+d.title+'</div></div></li>';
						});
						$(".tpl_shop_youhuijuan").html()
						$(".tpl_shop_youhuijuan").html(youhuihtml);
					}
					$(".tpl_shop_youhuijuanitems_ling").on("tap",function(){
						console.log("领取")
						var btnArray = ['取消', '确定'];
						// mui.confirm('点击上方下载娱管家，即可领取优惠券', '温馨提示', btnArray, function(e) {
						// if (e.index == 1) {
						// // info.innerText = '你刚确认MUI是个好框架';
						// location.href = 'http://www.yuzhuli.com/Share/erweima.html?id='+token;
						// } else {
						// // info.innerText = 'MUI没有得到你的认可，继续加油'
						// }
						// })
						 mui.alert('点击上方下载娱管家，即可领取优惠券', '温馨提示', function() {
						  //  info.innerText = '你刚关闭了警告框';
						 });
					})
					//海报信息
					if(obj.shopTpl){
						$(".tpl_shop_haibao").css({"display":"block"});
						$(".tpl_shop_haibao").css({"background-image":"url(" + obj.shopTpl.img + ")"});
						$(".tpl_shop_haibao_text").text(obj.shopTpl.desc);
					}else{
						$(".tpl_shop_haibao").css({"display":"none"});
					}
					//技师的展示；
					if(obj.technician.length>0){
						var jishihtml="";
						$.each(obj.technician,function(i,d){
							jishihtml=jishihtml+'<div class="jishi_items" data-id="'+d.id+'"><img class="jishi_items_img" style="background-image:url('+d.img+');" src="'+d.img+'" data-preview-src="" data-preview-group="'+ i+'">';
							jishihtml=jishihtml+'<div class="jishi_items_title1">'+d.serial_number+'</div>';
							jishihtml=jishihtml+'<div class="jishi_items_title2">'+d.title+'</div>';
							jishihtml=jishihtml+'<div class="jishi_items_title3">'+d.desc+'</div></div>';
						})
						$(".jishi_box").html("")
						$(".jishi_box").html(jishihtml);
					}else{
						$(".jishi_box").html("")
					}
					

	    			var share_tel = null;
	    			if(p.tel==null){
	    				share_tel = p.phone;
    				}else{
    					share_tel = p.tel;
    				}
					 share_data.title = p.shopname
				     share_data.desc =share_tel+','+p.addr;
				     share_data.img =p.listimg;
				    getWxConfig(ApiList, wxConfigCallback, false);
    			}
	    	}else{
	    		tan("获取失败");
	    	}
	    });
		var Z_phone = /^1[0-9]{1}[0-9]{9}$/;
	    $("#lj-yy").unbind('tap').on('tap',function(){
			var url2 = 'http://www.yuzhuli.com/api.php/Api/shop_order';
	    	var num = $("#lj-num").val();
	    	var time1 = $("#demo1").text();
	    	var time2 = $("#demo3").text();
	    	var phone = $("#lj-phone").val();
	    	var address2 = $(".ShopAddress span:nth-last-child(1)").text();
			var time = time1 + "-"+ time2;
			var token = getCache('token');
			if(token){
		    	if(num && time && phone){
		    		if(Z_phone.test(phone)){
					    $.post(url2,{token:token2,person_num:num,order_time:time,phone:phone,address:address2,shopid:parm},function(obj){
					    	if(obj.s){
					    		tan("预约成功");
					    		$(".Eject ,.rgba").hide();
					    	}else{
					    		tan("预约失败");
					    	}
					    });
		    		}else{
		    			tan("请填写正确手机号");
		    		}
		    	}else{
		    		tan("请填写完整信息");
		    	}
			}else{
				tan('请先登录');
			}
	    });
	    // 分享
	    function getWxConfig(ApiList, callback, debug) {    		
	        $.ajax({
	            url: 'http://www.yuzhuli.com/api.php/api/wechat_js_config',
	            type: 'POST',
	            dataType: 'json',
	            data: {url: location.href,apis:ApiList,debug:debug},
	        }).done(function (res) {
	        	console.log(res);
	            if (res.s) {
	                var con = res.config;
	                var wxConf = {
	                    debug: debug,
	                    appId: con.appId,
	                    timestamp: con.timestamp,
	                    nonceStr: con.nonceStr,
	                    signature: con.signature,
	                    jsApiList: ApiList
	                };
	                wx.config(wxConf);
	                wx.ready(function () {
	                    callback();
	                });
	            }
	        }).fail(function () {
	            console.log("error");
	        }).always(function () {
	            console.log("complete");
	        });
	    }
	    var ApiList = [
	        'onMenuShareTimeline',
	        'onMenuShareAppMessage',
	        'onMenuShareQQ',
	        'onMenuShareQZone',
	        'onMenuShareWeibo',
	    ];	
	    
	    function wx_share(data, callback) {
	        // 分享到朋友圈
	        wx.onMenuShareTimeline({
	            title: data.title, // 分享标题
	            link: data.link, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
	            imgUrl: data.img, // 分享图标
	            success: function () {
	                // 用户确认分享后执行的回调函数
	            },
	            cancel: function () {
	                // 用户取消分享后执行的回调函数
	            }
	        });
	        // 分享给朋友
	        wx.onMenuShareAppMessage({
	            title: data.title, // 分享标题
	            desc: data.desc, // 分享描述
	            link: data.link, // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
	            imgUrl: data.img, // 分享图标
	            type: '', // 分享类型,music、video或link，不填默认为link
	            dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
	            success: function () {
	                // 用户确认分享后执行的回调函数
	            },
	            cancel: function () {
	                // 用户取消分享后执行的回调函数
	            }
	        });
	        wx.onMenuShareQQ({
				title: data.title, // 分享标题
				desc: data.desc, // 分享描述
				link: data.link, // 分享链接
				imgUrl: data.img, // 分享图标
				success: function () {
				// 用户确认分享后执行的回调函数
				},
				cancel: function () {
				// 用户取消分享后执行的回调函数
				}
			});
			wx.onMenuShareQZone({
				title: data.title, // 分享标题
				desc: data.desc, // 分享描述
				link: data.link, // 分享链接
				imgUrl: data.img, // 分享图标
				success: function () {
				// 用户确认分享后执行的回调函数
				},
				cancel: function () {
				// 用户取消分享后执行的回调函数
				}
			});
			wx.onMenuShareWeibo({
				title: data.title, // 分享标题
				desc: data.desc, // 分享描述
				link: data.link, // 分享链接
				imgUrl: data.img, // 分享图标
				success: function () {
				// 用户确认分享后执行的回调函数
				},
				cancel: function () {
				// 用户取消分享后执行的回调函数
				}
			});
	    }	
	    var shareCallback = function (type, status) {
			
	    }	
	    var wxConfigCallback = function () {
//	    	$("audio")[0].play();
	        wx_share(share_data, shareCallback);	        
	    }	
	    
	    wx.error(function (res) {
	        console.log(JSON.stringify(res));
	        // config信息验证失败会执行error函数，如签名过期导致验证失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
	    }); 
	</script>
	<script src="./js/muijs/mui.previewimage.js"></script>
	<script src="./js/muijs/mui.zoom.js"></script>
	<script type="text/javascript" charset="utf-8">
		mui.previewImage();
	</script>
</body>
</html>
